package com.java.huxb.backend.film.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.java.huxb.backend.film.controller.vo.ActorResponseVo;
import com.java.huxb.backend.film.dao.entity.MoocActorT;
import com.java.huxb.backend.film.dao.mapper.MoocActorTMapper;
import com.java.huxb.backend.film.service.FilmActorsApi;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author huxb
 * @date 2020/1/29 0029 下午 1:44
 */
@Service
public class FilmActorsImpl  implements FilmActorsApi {

    @Resource
    private MoocActorTMapper moocActorTMapper;

    /**
     * 分页获取 演员列表信息
     * @param pageNum
     * @param pageSize
     * @return
     */
    @Override
    public IPage<ActorResponseVo> findActorsPageBy(int pageNum, int pageSize) {
        IPage<ActorResponseVo> page = moocActorTMapper.findMoocActorTPageBy(new Page<>(pageNum, pageSize));
        return page;
    }
}
